Optimal. Leaf size=174 \[ -\frac {5 \text {ArcTan}\left (\frac {\sqrt {a} \tan (c+d x)}{\sqrt {a+a \sec (c+d x)}}\right )}{a^{5/2} d}+\frac {115 \text {ArcTan}\left (\frac {\sqrt {a} \tan (c+d x)}{\sqrt {2} \sqrt {a+a \sec (c+d x)}}\right )}{16 \sqrt {2} a^{5/2} d}-\frac {\sin (c+d x)}{4 d (a+a \sec (c+d x))^{5/2}}-\frac {15 \sin (c+d x)}{16 a d (a+a \sec (c+d x))^{3/2}}+\frac {35 \sin (c+d x)}{16 a^2 d \sqrt {a+a \sec (c+d x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.26, antiderivative size = 174, normalized size of antiderivative = 1.00, number of steps
used = 8, number of rules used = 7, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.333, Rules used = {3902, 4105,
4107, 4005, 3859, 209, 3880} \begin {gather*} -\frac {5 \text {ArcTan}\left (\frac {\sqrt {a} \tan (c+d x)}{\sqrt {a \sec (c+d x)+a}}\right )}{a^{5/2} d}+\frac {115 \text {ArcTan}\left (\frac {\sqrt {a} \tan (c+d x)}{\sqrt {2} \sqrt {a \sec (c+d x)+a}}\right )}{16 \sqrt {2} a^{5/2} d}+\frac {35 \sin (c+d x)}{16 a^2 d \sqrt {a \sec (c+d x)+a}}-\frac {15 \sin (c+d x)}{16 a d (a \sec (c+d x)+a)^{3/2}}-\frac {\sin (c+d x)}{4 d (a \sec (c+d x)+a)^{5/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 209
Rule 3859
Rule 3880
Rule 3902
Rule 4005
Rule 4105
Rule 4107
Rubi steps
\begin {align*} \int \frac {\cos (c+d x)}{(a+a \sec (c+d x))^{5/2}} \, dx &=-\frac {\sin (c+d x)}{4 d (a+a \sec (c+d x))^{5/2}}-\frac {\int \frac {\cos (c+d x) \left (-5 a+\frac {5}{2} a \sec (c+d x)\right )}{(a+a \sec (c+d x))^{3/2}} \, dx}{4 a^2}\\ &=-\frac {\sin (c+d x)}{4 d (a+a \sec (c+d x))^{5/2}}-\frac {15 \sin (c+d x)}{16 a d (a+a \sec (c+d x))^{3/2}}-\frac {\int \frac {\cos (c+d x) \left (-\frac {35 a^2}{2}+\frac {45}{4} a^2 \sec (c+d x)\right )}{\sqrt {a+a \sec (c+d x)}} \, dx}{8 a^4}\\ &=-\frac {\sin (c+d x)}{4 d (a+a \sec (c+d x))^{5/2}}-\frac {15 \sin (c+d x)}{16 a d (a+a \sec (c+d x))^{3/2}}+\frac {35 \sin (c+d x)}{16 a^2 d \sqrt {a+a \sec (c+d x)}}-\frac {\int \frac {20 a^3-\frac {35}{4} a^3 \sec (c+d x)}{\sqrt {a+a \sec (c+d x)}} \, dx}{8 a^5}\\ &=-\frac {\sin (c+d x)}{4 d (a+a \sec (c+d x))^{5/2}}-\frac {15 \sin (c+d x)}{16 a d (a+a \sec (c+d x))^{3/2}}+\frac {35 \sin (c+d x)}{16 a^2 d \sqrt {a+a \sec (c+d x)}}-\frac {5 \int \sqrt {a+a \sec (c+d x)} \, dx}{2 a^3}+\frac {115 \int \frac {\sec (c+d x)}{\sqrt {a+a \sec (c+d x)}} \, dx}{32 a^2}\\ &=-\frac {\sin (c+d x)}{4 d (a+a \sec (c+d x))^{5/2}}-\frac {15 \sin (c+d x)}{16 a d (a+a \sec (c+d x))^{3/2}}+\frac {35 \sin (c+d x)}{16 a^2 d \sqrt {a+a \sec (c+d x)}}+\frac {5 \text {Subst}\left (\int \frac {1}{a+x^2} \, dx,x,-\frac {a \tan (c+d x)}{\sqrt {a+a \sec (c+d x)}}\right )}{a^2 d}-\frac {115 \text {Subst}\left (\int \frac {1}{2 a+x^2} \, dx,x,-\frac {a \tan (c+d x)}{\sqrt {a+a \sec (c+d x)}}\right )}{16 a^2 d}\\ &=-\frac {5 \tan ^{-1}\left (\frac {\sqrt {a} \tan (c+d x)}{\sqrt {a+a \sec (c+d x)}}\right )}{a^{5/2} d}+\frac {115 \tan ^{-1}\left (\frac {\sqrt {a} \tan (c+d x)}{\sqrt {2} \sqrt {a+a \sec (c+d x)}}\right )}{16 \sqrt {2} a^{5/2} d}-\frac {\sin (c+d x)}{4 d (a+a \sec (c+d x))^{5/2}}-\frac {15 \sin (c+d x)}{16 a d (a+a \sec (c+d x))^{3/2}}+\frac {35 \sin (c+d x)}{16 a^2 d \sqrt {a+a \sec (c+d x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 1.90, size = 169, normalized size = 0.97 \begin {gather*} \frac {460 \sqrt {2} \tanh ^{-1}\left (\frac {\sqrt {1-\sec (c+d x)}}{\sqrt {2}}\right ) \cos ^5\left (\frac {1}{2} (c+d x)\right ) \sec ^3(c+d x) \sin \left (\frac {1}{2} (c+d x)\right )-80 \tanh ^{-1}\left (\sqrt {1-\sec (c+d x)}\right ) (1+\sec (c+d x))^2 \tan (c+d x)+\sqrt {1-\sec (c+d x)} (16 \sin (c+d x)+5 (11+7 \sec (c+d x)) \tan (c+d x))}{16 d \sqrt {1-\sec (c+d x)} (a (1+\sec (c+d x)))^{5/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(551\) vs.
\(2(145)=290\).
time = 0.14, size = 552, normalized size = 3.17
method | result | size |
default | \(\frac {\left (-1+\cos \left (d x +c \right )\right )^{2} \left (80 \sin \left (d x +c \right ) \left (\cos ^{2}\left (d x +c \right )\right ) \sqrt {2}\, \sqrt {-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \arctanh \left (\frac {\sqrt {-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \sin \left (d x +c \right ) \sqrt {2}}{2 \cos \left (d x +c \right )}\right )+115 \sin \left (d x +c \right ) \left (\cos ^{2}\left (d x +c \right )\right ) \ln \left (-\frac {-\sqrt {-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \sin \left (d x +c \right )+\cos \left (d x +c \right )-1}{\sin \left (d x +c \right )}\right ) \sqrt {-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}+160 \sin \left (d x +c \right ) \sqrt {-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \arctanh \left (\frac {\sqrt {-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \sin \left (d x +c \right ) \sqrt {2}}{2 \cos \left (d x +c \right )}\right ) \sqrt {2}\, \cos \left (d x +c \right )+230 \sin \left (d x +c \right ) \sqrt {-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \ln \left (-\frac {-\sqrt {-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \sin \left (d x +c \right )+\cos \left (d x +c \right )-1}{\sin \left (d x +c \right )}\right ) \cos \left (d x +c \right )+80 \sqrt {-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \sqrt {2}\, \arctanh \left (\frac {\sqrt {-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \sin \left (d x +c \right ) \sqrt {2}}{2 \cos \left (d x +c \right )}\right ) \sin \left (d x +c \right )-32 \left (\cos ^{4}\left (d x +c \right )\right )+115 \ln \left (-\frac {-\sqrt {-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \sin \left (d x +c \right )+\cos \left (d x +c \right )-1}{\sin \left (d x +c \right )}\right ) \sqrt {-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \sin \left (d x +c \right )-78 \left (\cos ^{3}\left (d x +c \right )\right )+40 \left (\cos ^{2}\left (d x +c \right )\right )+70 \cos \left (d x +c \right )\right ) \sqrt {\frac {a \left (1+\cos \left (d x +c \right )\right )}{\cos \left (d x +c \right )}}}{32 d \sin \left (d x +c \right )^{5} a^{3}}\) | \(552\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 4.90, size = 606, normalized size = 3.48 \begin {gather*} \left [-\frac {115 \, \sqrt {2} {\left (\cos \left (d x + c\right )^{3} + 3 \, \cos \left (d x + c\right )^{2} + 3 \, \cos \left (d x + c\right ) + 1\right )} \sqrt {-a} \log \left (\frac {2 \, \sqrt {2} \sqrt {-a} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \cos \left (d x + c\right ) \sin \left (d x + c\right ) + 3 \, a \cos \left (d x + c\right )^{2} + 2 \, a \cos \left (d x + c\right ) - a}{\cos \left (d x + c\right )^{2} + 2 \, \cos \left (d x + c\right ) + 1}\right ) + 160 \, {\left (\cos \left (d x + c\right )^{3} + 3 \, \cos \left (d x + c\right )^{2} + 3 \, \cos \left (d x + c\right ) + 1\right )} \sqrt {-a} \log \left (\frac {2 \, a \cos \left (d x + c\right )^{2} - 2 \, \sqrt {-a} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \cos \left (d x + c\right ) \sin \left (d x + c\right ) + a \cos \left (d x + c\right ) - a}{\cos \left (d x + c\right ) + 1}\right ) - 4 \, {\left (16 \, \cos \left (d x + c\right )^{3} + 55 \, \cos \left (d x + c\right )^{2} + 35 \, \cos \left (d x + c\right )\right )} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sin \left (d x + c\right )}{64 \, {\left (a^{3} d \cos \left (d x + c\right )^{3} + 3 \, a^{3} d \cos \left (d x + c\right )^{2} + 3 \, a^{3} d \cos \left (d x + c\right ) + a^{3} d\right )}}, -\frac {115 \, \sqrt {2} {\left (\cos \left (d x + c\right )^{3} + 3 \, \cos \left (d x + c\right )^{2} + 3 \, \cos \left (d x + c\right ) + 1\right )} \sqrt {a} \arctan \left (\frac {\sqrt {2} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \cos \left (d x + c\right )}{\sqrt {a} \sin \left (d x + c\right )}\right ) - 160 \, {\left (\cos \left (d x + c\right )^{3} + 3 \, \cos \left (d x + c\right )^{2} + 3 \, \cos \left (d x + c\right ) + 1\right )} \sqrt {a} \arctan \left (\frac {\sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \cos \left (d x + c\right )}{\sqrt {a} \sin \left (d x + c\right )}\right ) - 2 \, {\left (16 \, \cos \left (d x + c\right )^{3} + 55 \, \cos \left (d x + c\right )^{2} + 35 \, \cos \left (d x + c\right )\right )} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sin \left (d x + c\right )}{32 \, {\left (a^{3} d \cos \left (d x + c\right )^{3} + 3 \, a^{3} d \cos \left (d x + c\right )^{2} + 3 \, a^{3} d \cos \left (d x + c\right ) + a^{3} d\right )}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\cos {\left (c + d x \right )}}{\left (a \left (\sec {\left (c + d x \right )} + 1\right )\right )^{\frac {5}{2}}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 424 vs.
\(2 (145) = 290\).
time = 1.38, size = 424, normalized size = 2.44 \begin {gather*} -\frac {2 \, \sqrt {-a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + a} {\left (\frac {2 \, \sqrt {2} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2}}{a^{3} \mathrm {sgn}\left (\cos \left (d x + c\right )\right )} - \frac {21 \, \sqrt {2}}{a^{3} \mathrm {sgn}\left (\cos \left (d x + c\right )\right )}\right )} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - \frac {128 \, \sqrt {2} {\left (3 \, {\left (\sqrt {-a} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - \sqrt {-a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + a}\right )}^{2} - a\right )}}{{\left ({\left (\sqrt {-a} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - \sqrt {-a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + a}\right )}^{4} - 6 \, {\left (\sqrt {-a} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - \sqrt {-a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + a}\right )}^{2} a + a^{2}\right )} \sqrt {-a} a \mathrm {sgn}\left (\cos \left (d x + c\right )\right )} + \frac {115 \, \sqrt {2} \log \left ({\left (\sqrt {-a} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - \sqrt {-a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + a}\right )}^{2}\right )}{\sqrt {-a} a^{2} \mathrm {sgn}\left (\cos \left (d x + c\right )\right )} - \frac {160 \, \log \left (\frac {{\left | -2 \, {\left (\sqrt {-a} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - \sqrt {-a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + a}\right )}^{2} - 4 \, \sqrt {2} {\left | a \right |} + 6 \, a \right |}}{{\left | -2 \, {\left (\sqrt {-a} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - \sqrt {-a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + a}\right )}^{2} + 4 \, \sqrt {2} {\left | a \right |} + 6 \, a \right |}}\right )}{\sqrt {-a} a {\left | a \right |} \mathrm {sgn}\left (\cos \left (d x + c\right )\right )}}{64 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {\cos \left (c+d\,x\right )}{{\left (a+\frac {a}{\cos \left (c+d\,x\right )}\right )}^{5/2}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________